package com.dp.searchbuilder.service.impl;

import java.util.List;

import com.dp.searchbuilder.bean.BuildEvent;
import com.dp.searchbuilder.dao.BuilderDao;
import com.dp.searchbuilder.service.ActionService;

public class ActionServiceImpl implements ActionService{
	private BuilderDao builderDao;

	public BuilderDao getBuilderDao() {
		return builderDao;
	}

	public void setBuilderDao(BuilderDao builderDao) {
		this.builderDao = builderDao;
	}

	@Override
	public BuildEvent getSingleEvent(long id) {
		return builderDao.getSingleEvent(id);
	}

	@Override
	public List<BuildEvent> getAllEvent() {
		return builderDao.getAllEvent();
	}

	@Override
	public List<BuildEvent> getCertainStatusEvent(String eventStatus) {
		return builderDao.getCertainStatusEvent(eventStatus);
	}

	@Override
	public List<BuildEvent> getCertainEvent(String gitServer, String branchName) {
		// TODO Auto-generated method stub
		return builderDao.getCertainEvent(gitServer, branchName);
	}

	@Override
	public int insertBuildEvent(BuildEvent buildEvent) {
		return builderDao.insertBuildEvent(buildEvent);
	}

	@Override
	public void updateEvent(int id, String buildStatus) {
		builderDao.updateEvent(id, buildStatus);
	}

}
